import { defineStore } from "pinia";
import { ref } from "vue";

const menusInfoStore = defineStore('menuInfo', () => {
    const menusInfo = ref({});
    const setMenusInfo = (newInfo) => {
        menusInfo.value = newInfo;
    };
    const removeMenusInfo = () => {
        menusInfo.value = {};
    };
    return {
        menusInfo,
        setMenusInfo,
        removeMenusInfo
    };
}, { persist: true });

export default menusInfoStore;
